import java.awt.Dimension;
import javax.swing.*;
import java.awt.*;
import java.util.*;
import java.text.*;

import javax.swing.JLabel;

    public class StatusBar extends JLabel{
        
        /** Creates a new instance of StatusBar */
        public StatusBar() {
            super();
            super.setPreferredSize(new Dimension(100, 16));
            DateFormat fDateFormat = DateFormat.getTimeInstance (DateFormat.DEFAULT);
            Date now = new Date();
            String date_out = fDateFormat.format(now);
            setMessage(date_out);
        }
        
        
        public void setMessage(String message) {
            setText(" "+message);        
        }        
    }